Skip to content

test(live): V2 enrollment and incremental sync against an account in a separate env file - #52

Merged
spbsoluble merged 3 commits into
feat/v2-consolidatedfrom
test/v2-alt-env-enroll
Nov 18, 2026
Merged

spbsoluble merged 3 commits into
feat/v2-consolidatedfrom
test/v2-alt-env-enroll

Conversation

@spbsoluble

@spbsoluble spbsoluble commented Nov 17, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Adds live V2 integration tests that run against an account described by a separate env file (CERTINEXT_ALT_ENV_FILE) instead of ~/.env_certinext[_v2], so SSL enrollment and sync can be checked on an account other than our sandbox.

Chores

  • V2AltEnvEnrollTests:
    • ListCatalog_FromAltEnvFile, Raw_ListIdentityAndGroups_FromAltEnvFile: read-only probes of the account's catalog and group membership.
    • Raw_PlaceSslOrder_FromAltEnvFile: order through a direct POST /ssl-certificates, bypassing the plugin. DV by default; OV/EV with an organization block.
    • Enroll_V2_Dv_FromAltEnvFile_Issues: DV enrollment through the plugin (single name, UCC, wildcard, wildcard UCC), polled with GetSingleRecord until issued.
    • Sync_V2_Incremental_FromAltEnvFile_ReturnsIssuedCertificates: read-only fullSync: false pass; each order in CERTINEXT_ALT_ENV_SYNC_ORDER_IDS must come back GENERATED with a parseable certificate.
  • The order-placing tests are opt-in through CERTINEXT_ALT_ENV_ENROLL, added to _optInOnlyFlags. Orders are left issued. Options: CERTINEXT_ALT_ENV_WILDCARD, CERTINEXT_ALT_ENV_EXTRA_SANS, CERTINEXT_ALT_ENV_VARIANT / CERTINEXT_ALT_ENV_ORG_NUMBER, CERTINEXT_ALT_ENV_GROUP_NUMBER / CERTINEXT_ALT_ENV_OMIT_GROUP, CERTINEXT_ALT_ENV_PRODUCT_CODE, CERTINEXT_ALT_ENV_ORDER_ID.
  • Account values are read from the env file only and never promoted into process env, so the sandbox fixtures of other classes are unaffected.
  • TESTING.md and INTEGRATION_TESTING.md list the new tests and flags.

Testing

  • make test passes (unit tests)
  • make integration-test passes (requires ~/.env_certinext)
  • make coverage shows no coverage regression
  • Tested only docs/config — no runtime changes

Test-only change, no plugin code touched. Release build is clean. The new tests were run live against a non-sandbox V2 account (single-name DV, DV UCC, and incremental sync of the issued orders); without the opt-in flags the order tests skip.

Checklist

  • PR title follows Conventional Commits (feat:, fix:, chore:, etc.) — this becomes the squash commit message on main
  • No secrets, credential files, or ~/.env_certinext content committed
  • docsource/ updated if behavior or configuration changed

V2AltEnvEnrollTests reads credentials from CERTINEXT_ALT_ENV_FILE instead of
~/.env_certinext[_v2]: read-only catalog and group-membership probes, plus
opt-in (CERTINEXT_ALT_ENV_ENROLL) DV orders through the plugin and through a
direct POST /ssl-certificates. Single-name or wildcard, group override or
omission, optional ProductCode, and re-reading an existing order. Orders are
left issued.
Sync_V2_Incremental_FromAltEnvFile_ReturnsIssuedCertificates runs a read-only
fullSync:false pass and asserts each order in CERTINEXT_ALT_ENV_SYNC_ORDER_IDS
comes back GENERATED with a parseable certificate. Config, sync, and leaf
parsing are shared helpers in the class.
CERTINEXT_ALT_ENV_EXTRA_SANS adds extra DNS names (UCC): the plugin test picks
the matching UCC ProductID and the direct API test sends additionalDomains. The
CSR now carries every DNS name in its SAN extension. The direct API test, renamed
Raw_PlaceSslOrder_FromAltEnvFile, takes CERTINEXT_ALT_ENV_VARIANT=ov|ev with an
organization block from CERTINEXT_ALT_ENV_ORG_NUMBER. The sync test routes plugin
logs to the test output so held-back orders show in the summary.
@spbsoluble
spbsoluble merged commit 2fdcf0b into feat/v2-consolidated Nov 18, 2026
42 checks passed
@spbsoluble
spbsoluble deleted the test/v2-alt-env-enroll branch November 18, 2026 22:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant